import { request } from '@/sheep/request';

export default {
  check: () =>
    request({
      url: '/admin/install/check',
      method: 'POST',
    }),
  init: () =>
    request({
      url: '/admin/install',
      method: 'GET',
    }),
  install: (data) =>
    request({
      url: '/admin/install',
      method: 'POST',
      data,
      options: {
        showSuccessMessage: true,
      },
      timeout: 60000,
    }),
};
